﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000037 RID: 55
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ActivityScheduleData : IMessage<ActivityScheduleData>, IMessage, IEquatable<ActivityScheduleData>, IDeepCloneable<ActivityScheduleData>, IBufferMessage
	{
		// Token: 0x170000AC RID: 172
		// (get) Token: 0x0600026F RID: 623 RVA: 0x00007FFD File Offset: 0x000061FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ActivityScheduleData> Parser
		{
			get
			{
				return ActivityScheduleData._parser;
			}
		}

		// Token: 0x170000AD RID: 173
		// (get) Token: 0x06000270 RID: 624 RVA: 0x00008004 File Offset: 0x00006204
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ActivityScheduleDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170000AE RID: 174
		// (get) Token: 0x06000271 RID: 625 RVA: 0x00008016 File Offset: 0x00006216
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ActivityScheduleData.Descriptor;
			}
		}

		// Token: 0x06000272 RID: 626 RVA: 0x0000801D File Offset: 0x0000621D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ActivityScheduleData()
		{
		}

		// Token: 0x06000273 RID: 627 RVA: 0x00008028 File Offset: 0x00006228
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ActivityScheduleData(ActivityScheduleData other) : this()
		{
			this.beginTime_ = other.beginTime_;
			this.endTime_ = other.endTime_;
			this.panelId_ = other.panelId_;
			this.activityId_ = other.activityId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000274 RID: 628 RVA: 0x0000807C File Offset: 0x0000627C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ActivityScheduleData Clone()
		{
			return new ActivityScheduleData(this);
		}

		// Token: 0x170000AF RID: 175
		// (get) Token: 0x06000275 RID: 629 RVA: 0x00008084 File Offset: 0x00006284
		// (set) Token: 0x06000276 RID: 630 RVA: 0x0000808C File Offset: 0x0000628C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long BeginTime
		{
			get
			{
				return this.beginTime_;
			}
			set
			{
				this.beginTime_ = value;
			}
		}

		// Token: 0x170000B0 RID: 176
		// (get) Token: 0x06000277 RID: 631 RVA: 0x00008095 File Offset: 0x00006295
		// (set) Token: 0x06000278 RID: 632 RVA: 0x0000809D File Offset: 0x0000629D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long EndTime
		{
			get
			{
				return this.endTime_;
			}
			set
			{
				this.endTime_ = value;
			}
		}

		// Token: 0x170000B1 RID: 177
		// (get) Token: 0x06000279 RID: 633 RVA: 0x000080A6 File Offset: 0x000062A6
		// (set) Token: 0x0600027A RID: 634 RVA: 0x000080AE File Offset: 0x000062AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PanelId
		{
			get
			{
				return this.panelId_;
			}
			set
			{
				this.panelId_ = value;
			}
		}

		// Token: 0x170000B2 RID: 178
		// (get) Token: 0x0600027B RID: 635 RVA: 0x000080B7 File Offset: 0x000062B7
		// (set) Token: 0x0600027C RID: 636 RVA: 0x000080BF File Offset: 0x000062BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ActivityId
		{
			get
			{
				return this.activityId_;
			}
			set
			{
				this.activityId_ = value;
			}
		}

		// Token: 0x0600027D RID: 637 RVA: 0x000080C8 File Offset: 0x000062C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ActivityScheduleData);
		}

		// Token: 0x0600027E RID: 638 RVA: 0x000080D8 File Offset: 0x000062D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ActivityScheduleData other)
		{
			return other != null && (other == this || (this.BeginTime == other.BeginTime && this.EndTime == other.EndTime && this.PanelId == other.PanelId && this.ActivityId == other.ActivityId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600027F RID: 639 RVA: 0x00008144 File Offset: 0x00006344
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BeginTime != 0L)
			{
				num ^= this.BeginTime.GetHashCode();
			}
			if (this.EndTime != 0L)
			{
				num ^= this.EndTime.GetHashCode();
			}
			if (this.PanelId != 0U)
			{
				num ^= this.PanelId.GetHashCode();
			}
			if (this.ActivityId != 0U)
			{
				num ^= this.ActivityId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000280 RID: 640 RVA: 0x000081CE File Offset: 0x000063CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000281 RID: 641 RVA: 0x000081D6 File Offset: 0x000063D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000282 RID: 642 RVA: 0x000081E0 File Offset: 0x000063E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EndTime != 0L)
			{
				output.WriteRawTag(24);
				output.WriteInt64(this.EndTime);
			}
			if (this.BeginTime != 0L)
			{
				output.WriteRawTag(48);
				output.WriteInt64(this.BeginTime);
			}
			if (this.ActivityId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.ActivityId);
			}
			if (this.PanelId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.PanelId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000283 RID: 643 RVA: 0x00008274 File Offset: 0x00006474
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BeginTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.BeginTime);
			}
			if (this.EndTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.EndTime);
			}
			if (this.PanelId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PanelId);
			}
			if (this.ActivityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ActivityId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000284 RID: 644 RVA: 0x000082FC File Offset: 0x000064FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ActivityScheduleData other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BeginTime != 0L)
			{
				this.BeginTime = other.BeginTime;
			}
			if (other.EndTime != 0L)
			{
				this.EndTime = other.EndTime;
			}
			if (other.PanelId != 0U)
			{
				this.PanelId = other.PanelId;
			}
			if (other.ActivityId != 0U)
			{
				this.ActivityId = other.ActivityId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000285 RID: 645 RVA: 0x00008374 File Offset: 0x00006574
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000286 RID: 646 RVA: 0x00008380 File Offset: 0x00006580
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 24U)
					{
						this.EndTime = input.ReadInt64();
						continue;
					}
					if (num == 48U)
					{
						this.BeginTime = input.ReadInt64();
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.ActivityId = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.PanelId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040000CE RID: 206
		private static readonly MessageParser<ActivityScheduleData> _parser = new MessageParser<ActivityScheduleData>(() => new ActivityScheduleData());

		// Token: 0x040000CF RID: 207
		private UnknownFieldSet _unknownFields;

		// Token: 0x040000D0 RID: 208
		public const int BeginTimeFieldNumber = 6;

		// Token: 0x040000D1 RID: 209
		private long beginTime_;

		// Token: 0x040000D2 RID: 210
		public const int EndTimeFieldNumber = 3;

		// Token: 0x040000D3 RID: 211
		private long endTime_;

		// Token: 0x040000D4 RID: 212
		public const int PanelIdFieldNumber = 14;

		// Token: 0x040000D5 RID: 213
		private uint panelId_;

		// Token: 0x040000D6 RID: 214
		public const int ActivityIdFieldNumber = 13;

		// Token: 0x040000D7 RID: 215
		private uint activityId_;
	}
}
